The worst flagrant foul in history was called on Diana Taurasi in college vs Virginia Tech
Fast break, Diana was chasing the player but pulled up and conceded the hoop. There was absolutely no contact, replays showed there was at least a couple of feet between the players, yet the ref called a flagrant
As for NBA officiating, they suck. Haven't looked this up in years, but the home team free throw disparity was bizarre in and by itself. Then there's the superstar protection, or runs when one team shoots free throws on 10 straight possessions, flopping, rule changes, a finger grazing the shooter after the ball is released is a foul at the 3 point line while they allow post player to get mauled.
The basketball rule book used to actually say that physical contact in and by itself is not a foul, there had to be an advantage gained or lost. Now the rules are written to create fouls